package com.backend.system.beans.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * 根据用户信息查询角色请求体
 *
 * @author backend-manage
 */
@Data
@ApiModel
public class RoleQueryAllByUserReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 2062506838297916806L;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;
}
